package com.tomshushu.doc.freedoc.modular.doc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.tomshushu.doc.freedoc.modular.directory.entity.DirectoryEntity;
import com.tomshushu.doc.freedoc.modular.doc.entity.DocEntity;
import com.tomshushu.doc.freedoc.modular.doc.model.param.SearchDocParam;
import com.tomshushu.doc.freedoc.modular.doc.model.result.SearchDocResult;
import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @description:
 * @author: zhouhong
 * @date: 2025-06-11 12:17
 * @version: 1.0
 */
public interface DocMapper extends BaseMapper<DocEntity> {

    /**
     * 搜索文档
     *
     * @param teamId
     * @param projectId
     * @param searchValue
     * @return
     */
    List<SearchDocResult> listSearchDoc(@Param("teamId") String teamId,
                                         @Param("projectId") String projectId,
                                         @Param("searchValue") String searchValue);

}